package com.mazaiting.dtp.listeners.event;

import com.dtp.common.dto.NotifyPlatform;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 邮件事件
 *
 * @author mazaiting
 * @create_time 2022/10/6 17:19
 */
@Setter
@Getter
public class EmailEvent extends ApplicationEvent {
    /**
     * 平台信息
     */
    private NotifyPlatform platform;
    /**
     * 内容
     */
    private String content;

    public EmailEvent(NotifyPlatform platform, String content) {
        super(new Object());
        this.platform = platform;
        this.content = content;
    }
}
